<?php include_once("header.html")?>

<div id="wrap">  <br />
<?php include_once("home_left.html")?>
    <div class="admincontent">
    
    <?php if(is_array($bestshoppers) && !empty($bestshoppers)){
		foreach($bestshoppers as $key=>$val){
    ?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div class="table2TitleBg">
            <div class="table2TitleBg2">
    		  	<div class="table2Title"><div class="table2TitleLeft"><span><?php echo lang('questionnaire_score')?> (<?php echo $val['score'];?>分)</span></div></div>
            </div>
           </div></td>
        </tr>

        <tr>
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="table2LeftBorder"></td>
              <td>
              <div style="width:10%;float: left;"><?php echo $val['for_month'];?></div>
              <?php if(isset($val['names']) && is_array($val['names'])){ ?>
             	 <div style="width:90%; float:right;" ><table width="80%" border="0" cellspacing="1" cellpadding="0" class="missionReport" >
					<?php 
						$i = 0;
						foreach ($val['names'] as $k=>$v){
							if(!($i%2)) echo "<tr>"; ?>
							<td width="40%" align="center"><?php echo $v;?></td>
							<?php $i++; if(!($i%2)) echo "</tr>"; ?>	
              	 <?php } if(($i%2)) echo "<td></td>"; ?>
              	 </table></div>
					<?php	}?>
              </td>
              <td class="table2RightBorder"></td>
            </tr>
            <tr>
              <td class="table2BottomLeft"></td>
              <td class="table2Bottom"></td>

              <td class="table2BottomRight"></td>
            </tr>
          </table></td>
        </tr>
      </table><br />
      
      <?php }
      	}else echo "Sorry, no datas.";?>
  </div>

</div>

<?php include_once("footer.html")?>
